package masterjava.common.client.gxt.highstock.intraday;

import masterjava.common.client.gxt.highstock.HighStockColumnSeries;
import masterjava.common.shared.Presentable;
import masterjava.common.shared.charts.IntradaysEntry;

/**
 * User: gkislin
 * Date: 7/21/11
 */
public class IntradayVolumeHighStockSeries<I extends IntradaysEntry> extends HighStockColumnSeries<I> {
    public IntradayVolumeHighStockSeries(Iterable<I> data) {
        super("volume", data, new Presentable<I>() {
            @Override
            public CharSequence present(I entry) {
                return new StringBuilder().append(entry.getTimestamp().getTime()).append(",").append(entry.getVolume());
            }
        });
    }
}
